package jmockit.test.privates;

import junit.framework.Assert;
import mockit.Expectations;

import org.junit.Test;

public class ABTestStatic {

	@Test public void testTest(){
		int expected = 20*20;
		int actual = mockit.Deencapsulation.invoke(ABStatic.class, "test", 20);
		Assert.assertEquals(expected, actual);
	}
	
	@Test public void testTest002(){
		ABStatic ab = new ABStatic();
		int expected = 30*30;
		new Expectations(ABStatic.class){
			{
				invoke(ABStatic.class, "test", 30);
				result = 30*30;
			}
		};
		int actual = ab.test002(30);
		Assert.assertEquals(expected, actual);
	}
}
